package cn.hxzy.icon.icon.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class PageBean<T> {
    private List<T> list;
    private Integer page;
    private Integer size;
    private Long count;
    private Integer pageCount;

    public PageBean(Integer page, Integer size) {
        this.page = page;
        this.size = size;
    }

    @Override
    public String toString() {
        return "PageObj{" +
                "list=" + list +
                ", page=" + page +
                ", size=" + size +
                ", count=" + count +
                ", pageCount=" + pageCount +
                '}';
    }
}
